//
//  RegisterView.m
//  DongChiDaChiProject1
//
//  Created by lanou3g on 15/11/7.
//  Copyright © 2015年 com.lanou3g. All rights reserved.
//

#import "RegisterView.h"
#import "LTView.h"

@implementation RegisterView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self addView];
    }
    return self;
}

// 构建界面
- (void)addView
{
    self.userNameView = [[LTView alloc] initWithFrame:CGRectMake(40 * kWidthFitParameter, 50 * kWidthFitParameter, 300 * kWidthFitParameter, 30 * kWidthFitParameter)];
    self.userNameView.label.text = @"用户名";
    self.userNameView.textField.placeholder = @"请输入用户名";
    self.userNameView.textField.layer.cornerRadius = 5 * kWidthFitParameter;
    self.userNameView.textField.borderStyle = UITextBorderStyleRoundedRect;
    [self addSubview:self.userNameView];
    
    
    
    self.passWordView = [[LTView alloc] initWithFrame:CGRectMake(40 * kWidthFitParameter, self.userNameView.bottom + 30 * kWidthFitParameter, 300 * kWidthFitParameter, 30 * kWidthFitParameter)];
    self.passWordView.label.text = @"密码";
    self.passWordView.textField.placeholder = @"请输入密码";
    self.passWordView.textField.borderStyle = UITextBorderStyleRoundedRect;
    self.passWordView.textField.layer.cornerRadius = 5 * kWidthFitParameter;
    self.passWordView.textField.secureTextEntry = YES;
    [self addSubview:self.passWordView];
    
    
        self.surePassWordView = [[LTView alloc] initWithFrame:CGRectMake(40 * kWidthFitParameter, self.passWordView.bottom + 30 * kWidthFitParameter, 300 * kWidthFitParameter, 30 * kWidthFitParameter)];
    self.surePassWordView.label.text = @"确认密码";
    self.surePassWordView.textField.placeholder = @"请确认密码";
    self.surePassWordView.textField.borderStyle = UITextBorderStyleRoundedRect;
    self.surePassWordView.textField.layer.cornerRadius = 5 * kWidthFitParameter;
    self.surePassWordView.textField.secureTextEntry = YES;
        [self addSubview:self.surePassWordView];
    
    
        self.addressView = [[LTView alloc] initWithFrame:CGRectMake(40 * kWidthFitParameter, self.surePassWordView.bottom + 30 * kWidthFitParameter, 300 * kWidthFitParameter, 30 * kWidthFitParameter)];
    self.addressView.label.text = @"邮箱";
    self.addressView.textField.placeholder = @"请输入邮箱";
    self.addressView.textField.borderStyle = UITextBorderStyleRoundedRect;
    self.addressView.textField.layer.cornerRadius = 5 * kWidthFitParameter;
        [self addSubview:self.addressView];
    
    
    
        self.phoneNumberView = [[LTView alloc] initWithFrame:CGRectMake(40 * kWidthFitParameter , self.addressView.bottom + 30 * kWidthFitParameter, 300 * kWidthFitParameter, 30 * kWidthFitParameter)];
       self.phoneNumberView.label.text = @"手机号";
    self.phoneNumberView.textField.placeholder = @"请输入手机号";
    self.phoneNumberView.textField.borderStyle = UITextBorderStyleRoundedRect;
    self.phoneNumberView.textField.keyboardType = UIKeyboardTypePhonePad;
    self.phoneNumberView.textField.layer.cornerRadius = 5 * kWidthFitParameter;
        [self addSubview:self.phoneNumberView];
    
    
    
    
    
    
    
}


@end
